package com.qi.services;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qi.pojo.dto.AddClubBody;
import com.qi.pojo.dto.UpdateClubBody;
import com.qi.pojo.entity.Club;
import org.springframework.transaction.annotation.Transactional;

public interface IClubService extends IService<Club> {

    @Transactional
    void add(AddClubBody addClubBody);

    @Transactional
    void delete(Long id);

    @Transactional
    void modify(UpdateClubBody updateClubBody);

    IPage<Club> listPage(Long current, Long size);

    Club getClubById(Long id);
}
